package com.foruo.learn.designmode.strategy;

/**
 * 使用者
 * @author GaoYuan
 * @date 2018/11/11 下午2:51
 */
public class Context {

    IOperation iOperation;

    public Context(IOperation iOperation) {
        this.iOperation = iOperation;
    }

    public int execute(int a, int b){
        return iOperation.operation(a, b);
    }
}
